import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { resolve } from "path";

// https://vitejs.dev/config/
export default defineConfig({
    base: "/",
    plugins: [
        vue(),
        // createHtmlPlugin(newParams),
    ],
    server: {
        proxy: {
            "/api": {
                target: "http://www.sarfluid.com",
                changeOrigin: true,
            },
        },
    },
    // build: {
    //     rollupOptions: {
    //         input: {
    //             main: resolve(__dirname, "index.html"),
    //             about: resolve(__dirname, "about.html"),
    //             error: resolve(__dirname, "404.html"),
    //             contacts: resolve(__dirname, "contacts.html"),
    //             honors: resolve(__dirname, "honors.html"),
    //             newscenter: resolve(__dirname, "newscenter.html"),
    //             productdetail: resolve(__dirname, "productdetail.html"),
    //             products: resolve(__dirname, "products.html"),
    //             qualitys: resolve(__dirname, "qualitys.html"),
    //             reception: resolve(__dirname, "reception.html"),
    //             services: resolve(__dirname, "services.html"),
    //         },
    //     },
    // },
});
